package com.trkj.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;


/**
 * The persistent class for the SALARY_CHANGE database table.
 * 
 */
@Entity
@Table(name="SALARY_CHANGE")
@NamedQuery(name="SalaryChange.findAll", query="SELECT s FROM SalaryChange s")
public class SalaryChange implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="SALARY_CHANGE_CHANGEID_GENERATOR", sequenceName="HR")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SALARY_CHANGE_CHANGEID_GENERATOR")
	@Column(name="CHANGE_ID")
	private long changeId;

	@Column(name="CHANGE_DATE")
	private Timestamp changeDate;

	@Column(name="CHANGE_EXECUTOR")
	private String changeExecutor;

	@Column(name="CHANGE_STATE")
	private BigDecimal changeState;

	//bi-directional many-to-one association to SalaryProject
	@ManyToOne
	@JoinColumn(name="PROJECT_ID")
	private SalaryProject salaryProject;

	//bi-directional many-to-one association to StaffInformation
	@ManyToOne
	@JoinColumn(name="STAIN_ID")
	private StaffInformation staffInformation;

	public SalaryChange() {
	}

	public long getChangeId() {
		return this.changeId;
	}

	public void setChangeId(long changeId) {
		this.changeId = changeId;
	}

	public Timestamp getChangeDate() {
		return this.changeDate;
	}

	public void setChangeDate(Timestamp changeDate) {
		this.changeDate = changeDate;
	}

	public String getChangeExecutor() {
		return this.changeExecutor;
	}

	public void setChangeExecutor(String changeExecutor) {
		this.changeExecutor = changeExecutor;
	}

	public BigDecimal getChangeState() {
		return this.changeState;
	}

	public void setChangeState(BigDecimal changeState) {
		this.changeState = changeState;
	}

	public SalaryProject getSalaryProject() {
		return this.salaryProject;
	}

	public void setSalaryProject(SalaryProject salaryProject) {
		this.salaryProject = salaryProject;
	}

	public StaffInformation getStaffInformation() {
		return this.staffInformation;
	}

	public void setStaffInformation(StaffInformation staffInformation) {
		this.staffInformation = staffInformation;
	}

}